home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm1 / intsdkss.lha / include / sys / errno.h < prev    next >
C/C++ Source or Header  |  1996-04-09  |  6KB  |  156 lines

  1. #ifndef SYS_ERRNO_H
  2. #define SYS_ERRNO_H
  3. /*
  4.  * Amiga standard errno.h
  5.  */
  6. #define UNIXERR
  7.  
  8. #define EOSERR        -1    /* AmigaDOS error -- see IoErr()        */
  9.  
  10. #define EPERM        1    /* no permission to access object    */
  11. #define ENOENT        2    /* no such file, dir, or volume     */
  12. #define ESRCH        3    /* no such process            */
  13. #define EINTR        4    /* interrupted system call        */
  14. #define EIO        5    /* I/O error                */
  15. #define ENXIO        6    /* No such device or address        */
  16. #define E2BIG        7    /* agrument is too big            */
  17. #define ENOEXEC     8    /* exec error                */
  18. #define EBADF        9    /* bad file handle            */
  19. #define ECHILD        10    /* child process error            */
  20. #define EAGAIN        11    /* no more processes allowed        */
  21. #define ENOMEM        12    /* no memory                */
  22. #define EACCES        13    /* access denied            */
  23. #define EFAULT        14    /* bad address                */
  24. #define ENOTBLK     15    /* block device required        */
  25. #define EBUSY        16    /* object (file, dir, volume) is busy   */
  26. #define EEXIST        17    /* object already exists        */
  27. #define EXDEV        18    /* cross device link            */
  28. #define ENODEV        19    /* no such device            */
  29. #define ENOTDIR     20    /* object is not directory        */
  30. #define EISDIR        21    /* object is directory/volume        */
  31. #define EINVAL        22    /* invalid argument            */
  32. #define ENFILE        23    /* no more files allowed        */
  33. #define EMFILE        24    /* no more files allowed for this proc    */
  34. #define ENOTTY        25    /* not a terminal            */
  35. #define ETXTBSY     26    /* text file is busy            */
  36. #define EFBIG        27    /* file is too large            */
  37. #define ENOSPC        28    /* no space on device            */
  38. #define ESPIPE        29    /* seek on device not able to seek    */
  39. #define EROFS        30    /* read only filesystem         */
  40. #define EMLINK        31    /* too many links            */
  41. #define EPIPE        32    /* broken pipe: connection        */
  42. #define EDOM        33    /* math func domain error        */
  43. #define ERANGE        34    /* math func result out of range    */
  44.  
  45. #ifdef UNIXERR
  46. /* non-blocking and interrupt i/o */
  47. #define EWOULDBLOCK    35        /* Operation would block */
  48. #define EINPROGRESS    36        /* Operation now in progress */
  49. #define EALREADY    37        /* Operation already in progress */
  50. /* ipc/network software */
  51.  
  52.     /* argument errors */
  53. #define ENOTSOCK    38        /* Socket operation on non-socket */
  54. #define EDESTADDRREQ    39        /* Destination address required */
  55. #define EMSGSIZE    40        /* Message too long */
  56. #define EPROTOTYPE    41        /* Protocol wrong type for socket */
  57. #define ENOPROTOOPT    42        /* Protocol not available */
  58. #define EPROTONOSUPPORT 43        /* Protocol not supported */
  59. #define ESOCKTNOSUPPORT 44        /* Socket type not supported */
  60. #define EOPNOTSUPP    45        /* Operation not supported on socket */
  61. #define EPFNOSUPPORT    46        /* Protocol family not supported */
  62. #define EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  63. #define EADDRINUSE    48        /* Address already in use */
  64. #define EADDRNOTAVAIL    49        /* Can't assign requested address */
  65.  
  66.     /* operational errors */
  67. #define ENETDOWN    50        /* Network is down */
  68. #define ENETUNREACH    51        /* Network is unreachable */
  69. #define ENETRESET    52        /* Network dropped connection on reset */
  70. #define ECONNABORTED    53        /* Software caused connection abort */
  71. #define ECONNRESET    54        /* Connection reset by peer */
  72. #define ENOBUFS     55        /* No buffer space available */
  73. #define EISCONN     56        /* Socket is already connected */
  74. #define ENOTCONN    57        /* Socket is not connected */
  75. #define ESHUTDOWN    58        /* Can't send after socket shutdown */
  76. #define ETOOMANYREFS    59        /* Too many references: can't splice */
  77. #define ETIMEDOUT    60        /* Connection timed out */
  78. #define ECONNREFUSED    61        /* Connection refused */
  79.  
  80.     /* */
  81. #define ELOOP        62        /* Too many levels of symbolic links */
  82. #define ENAMETOOLONG    63        /* File name too long */
  83.  
  84. /* should be rearranged */
  85. #define EHOSTDOWN    64        /* Host is down */
  86. #define EHOSTUNREACH    65        /* No route to host */
  87. #define ENOTEMPTY    66        /* Directory not empty */
  88.  
  89. /* quotas & mush */
  90. #define EPROCLIM    67        /* Too many processes */
  91. #define EUSERS        68        /* Too many users */
  92. #define EDQUOT        69        /* Disc quota exceeded */
  93.  
  94. /* Network File System */
  95. #define ESTALE        70        /* Stale NFS file handle */
  96. #define EREMOTE     71        /* Too many levels of remote in path */
  97.  
  98. /* streams */
  99. #define ENOSTR        72        /* Device is not a stream */
  100. #define ETIME        73        /* Timer expired */
  101. #define ENOSR        74        /* Out of streams resources */
  102. #define ENOMSG        75        /* No message of desired type */
  103. #define EBADMSG     76        /* Trying to read unreadable message */
  104.  
  105. /* SystemV IPC */
  106. #define EIDRM        77        /* Identifier removed */
  107.  
  108. /* SystemV Record Locking */
  109. #define EDEADLK     78        /* Deadlock condition. */
  110. #define ENOLCK        79        /* No record locks available. */
  111.  
  112. /* Non-standard UNIX, ie Amigados errors */
  113. #define EBADVOL     80    /* Bad volume name            */
  114. #define ECONFIGPROBLEM    81    /* software configuration problem    */
  115.  
  116. #else
  117. #define ENETDOWN    35    /* network software is down        */
  118. #define ENETUNREACH    36    /* network is not reachable from here    */
  119. #define ENETRESET    37    /* network software was reset        */
  120. #define ECONNABORTED    38    /* connection was aborted        */
  121. #define ECONNRESET    39    /* connection was reset         */
  122. #define ENOBUFS     40    /* no network buffers available     */
  123. #define EISCONN     41    /* already connected            */
  124. #define ENOTCONN    42    /* not connected            */
  125. #define ESHUTDOWN    43    /* socket was shutdown            */
  126. #define ETIMEDOUT    44    /* operation timed out            */
  127. #define ECONNREFUSED    45    /* connect request was refused        */
  128. #define EHOSTDOWN    46    /* host is down             */
  129. #define EHOSTUNREACH    47    /* host is unreachable            */
  130. #define EWOULDBLOCK    48    /* operation would have blocked     */
  131. #define EPROTOTYPE    49
  132. #define ENOTSOCK    50    /* socket required, supplied arg wasn't */
  133. #define EADDRINUSE    51    /* address already in use        */
  134. #define EADDRNOTAVAIL    52    /* address not available on this node    */
  135. #define EMSGSIZE    53    /* MSG too big or too small        */
  136. #define EAFNOSUPPORT    54    /* address family not supported     */
  137. #define EPFNOSUPPORT    55    /* protocol family not supported    */
  138. #define ENOPROTOOPT    56    /* protocol doesn't support option      */
  139. #define EPROTONOSUPPORT 57
  140. #define EALREADY    58
  141. #define EDESTADDRREQ    59    /* destination address required     */
  142. #define EINPROGRESS    60    /* operation already in progress    */
  143. #define ESTALE        61    /* stale remote filesystem handle    */
  144. #define EBADVOL     62    /* Bad volume name            */
  145. #define ECONFIGPROBLEM    63    /* software configuration problem    */
  146. #define EOPNOTSUPP    64    /* operation is not supported        */
  147.  
  148. #define ENONSTD     100    /* Add non standard errors after ENONSTD*/
  149.  
  150. #endif
  151.  
  152. extern char *__sys_errlist[];
  153. extern int __sys_nerr, errno;
  154.  
  155. #endif    /* SYS_ERRNO_H */
  156.